package raspberry_pi_app;

public class ClassUserCredentials {
	String email,name,profile_pic;
	int rank;
	boolean logged_in;
	ClassUserCredentials(ApplicationGlobalVars globals){
		if(globals.credentials_loaded()){
			this.profile_pic = globals.get_credentials_store().profile_pic;
			this.name = globals.get_credentials_store().name;
			this.email = globals.get_credentials_store().email;
			this.rank = globals.get_credentials_store().rank;
			this.logged_in = true;
		}else{
			this.name = "Not Logged In";
			this.email = "Not Logged In";
			this.profile_pic = "";
			this.rank = -1;
			this.logged_in = false;
		}
	}
	ClassUserCredentials(String email, String name, String profile_pic, int rank, boolean logged_in){
		this.name = name;
		this.email = email;
		this.profile_pic = profile_pic;
		this.rank = rank;
		this.logged_in = logged_in;
	}
	ClassUserCredentials(ClassUserCredentials credentials){
		this.name = credentials.name;
		this.email = credentials.email;
		this.profile_pic = credentials.profile_pic;
		this.rank = credentials.rank;
		this.logged_in = credentials.logged_in;
	}
}
